/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.header {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #1890ff;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav-item {
    color: #666;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
}

.nav-item:hover {
    color: #1890ff;
    background: #e6f7ff;
}

/* 用户信息 */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info a {
    color: #666;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
}

.user-info a:hover {
    color: #1890ff;
    background: #e6f7ff;
}

/* 内容区域 */
.content {
    min-height: calc(100vh - 200px);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 8px 20px;
    background: #1890ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    background: #40a9ff;
}

.btn-secondary {
    background: #fff;
    color: #1890ff;
    border: 1px solid #1890ff;
}

.btn-secondary:hover {
    background: #e6f7ff;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: #1890ff;
}

/* 提示信息 */
.alert {
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #52c41a;
}

.alert-error {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #ff4d4f;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1890ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 